package com.ruoyi.customer.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 拜访信息对象 customer_visit
 *
 * @author aef
 * @date 2022-11-28
 */
@TableName("customer_visit")
@Getter@Setter
@ToString
public class CustomerVisit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一id */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 客户 */
    @Excel(name = "客户")
    @TableField("customer_id")
    private Long customerId;

    /** 联系人 */
    @Excel(name = "联系人")
    @TableField("linkman_id")
    private Long linkmanId;

    /** 拜访方式 */
    @Excel(name = "拜访方式")
    @TableField("visit_type")
    private Integer visitType;

    /** 拜访原因 */
    @Excel(name = "拜访原因")
    @TableField("visit_reason")
    private String visitReason;

    /** 交流内容 */
    @Excel(name = "交流内容")
    @TableField("content")
    private String content;

    /** 拜访时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "拜访时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("visit_date")
    private Date visitDate;

    /** 录入人 */
    @Excel(name = "录入人")
    @TableField("input_user")
    private String inputUser;

    /** 录入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @TableField("input_time")
    private Date inputTime;

    @TableField(exist = false)
    private String keyword;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date endInputTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date beginInputTime;

}
